//
//  AppDelegate.swift
//  SW-weibo
//
//  Created by 黄淇鸿 on 16/1/10.
//  Copyright © 2016年 qhhuang. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

        //修改全局的tintColor
        UITabBar.appearance().tintColor = UIColor.orangeColor()

        //创建window窗口
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        
        //设置genkonzhiq
        window?.rootViewController = MainViewController()
        window?.backgroundColor = UIColor.whiteColor()

        //让窗口生效
        window?.makeKeyAndVisible()

        return true
    }
}


func HQHLog<AnyType>(message : AnyType, filePath : String = __FILE__, funcName : String = __FUNCTION__, lineNum : Int = __LINE__) {
    #if ABC
        
        let fileName = (filePath as NSString).lastPathComponent
        print(fileName + "[\(funcName)]" + "(\(lineNum)):" + "\(message)")
        
    #endif
}